const customTitle = "恭喜发财，大吉大利";
const customArtist = "ㅤㅤㅤㅤㅤㅤㅤㅤ"; // 特殊空白字符
const customCover = `https://i.miji.bid/2025/03/14/fa50afb988f433a35b67a9e0460333fb.jpeg?ts=${Date.now()}`;

let body = $response.body;

try {
    let obj = JSON.parse(body);

    if (obj.data) {
        // 强制覆盖封面字段
        obj.data.cover = customCover;
        obj.data.picUrl = customCover;
        if (obj.data.album) {
            obj.data.album.picUrl = customCover;
        }

        // 修改其他信息
        obj.data.songname = customTitle;
        obj.data.name = customArtist;

        // 调试日志
        console.log(`封面已强制替换：${customCover}`);
        console.log(`完整响应：${JSON.stringify(obj, null, 2)}`);
    }

    $done({ body: JSON.stringify(obj) });
} catch (e) {
    console.log("JSON 解析失败:", e);
    $done({});
}
